<%@ page pageEncoding="utf-8" %>
<!-- 引入JSTL标签库 -->
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html>
<head>
    <title>新增订单</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <style type="text/css">
        body {
            font-family: "微软雅黑";
            background-color: #EDEDED;
        }

        h2 {
            text-align: center;
            font-size: 26px;
        }

        table {
            margin: 30px auto;
            text-align: center;
            border-collapse: collapse;
            width: 50%;
        }

        td, th {
            padding: 5px;
            font-size: 18px;
        }

        hr {
            margin-bottom: 20px;
            border: 1px solid #aaa;
        }

        input, select, textarea {
            width: 284px;
            height: 30px;
            background: #EDEDED;
            border: 1px solid #999;
            text-indent: 5px;
            font-size: 18px;
        }

        input[type='submit'] {
            width: 130px;
            height: 36px;
            cursor: pointer;
            border-radius: 5px 5px 5px 5px;
            background: #ddd;
        }

        select {
            text-indent: 0px;
        }

        textarea {
            height: 100px;
            font-size: 22px;
        }
    </style>

    <script type="text/javascript">
    </script>
</head>
<body>
<h2>新增订单</h2>
<hr/>
<form action="addOrder" method="POST">
    <table border="1">
        <tr>
            <td width="30%">所属门店</td>
            <td>
                <select name="door_id">
                    <c:forEach items="${ doors }" var="door">
                        <option value="${ door.id }">${ door.name }</option>
                    </c:forEach>
                </select>
            </td>
        </tr>
        <tr>
            <td>订单编号</td>
            <td>
                <input type="text" name="order_no"/>
            </td>
        </tr>
        <tr>
            <td>订单类型</td>
            <td>
                <%--<input type="text" name="orderType" value="堂食"/>--%>

                <select name="order_type">
                    <option value="堂食">堂食</option>
                    <option value="外买">外买</option>
                    <option value="打包">打包</option>
                </select>
            </td>
        </tr>
        <tr>
            <td>用餐人数</td>
            <td>
                <input type="text" name="pnum"/>
            </td>
        </tr>
        <tr>
            <td>收银员</td>
            <td>
                <input type="text" name="cashier"/>
            </td>
        </tr>
        <tr>
            <td>支付方式</td>
            <td>
                <%--<input type="text" name="payType" value="微支付"/>--%>
                <select name="pay_type">
                    <option value="微信支付">微信支付</option>
                    <option value="支付宝支付">支付宝支付</option>
                    <option value="现金支付">现金支付</option>
                </select>
            </td>
        </tr>
        <tr>
            <td>支付金额</td>
            <td>
                <input type="text" name="price"/>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value="提 	交"/>
            </td>
        </tr>
    </table>
</form>
</body>
</html>



